package com.yumingjiang.weichatgtp;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@SpringBootApplication
@NacosPropertySource(dataId = "chatgpt-service", autoRefreshed = true)//加载配置信息，并开启自动刷新
public class WeiChatGtpApplication {

    public static void main(String[] args) {
        SpringApplication.run(WeiChatGtpApplication.class, args);
    }
    @RequestMapping("/")
    public String index(){
        return "index";
    }
}
